package com.martys.singleton06;


public class Application {

	//测试这个用双重检查实现的懒汉式单例模式
	public static void main(String[] args) {
		Singleton06 instance1 = Singleton06.getInstance();
		System.out.println("instance1 hashcode： "+instance1.hashCode());
		Singleton06 instance2= Singleton06.getInstance();
		System.out.println("instance2 hashcode： "+instance2.hashCode());
	}

}
